package com.wangshang.user.po;

/**
 * AbstractMyFaveId entity provides the base persistence definition of the
 * MyFaveId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractMyFaveId implements java.io.Serializable {

	// Fields

	private String userIdentify;
	private Short kind;
	private String mainId;

	// Constructors

	/** default constructor */
	public AbstractMyFaveId() {
	}

	/** full constructor */
	public AbstractMyFaveId(String userIdentify, Short kind, String mainId) {
		this.userIdentify = userIdentify;
		this.kind = kind;
		this.mainId = mainId;
	}

	// Property accessors

	public String getUserIdentify() {
		return this.userIdentify;
	}

	public void setUserIdentify(String userIdentify) {
		this.userIdentify = userIdentify;
	}

	public Short getKind() {
		return this.kind;
	}

	public void setKind(Short kind) {
		this.kind = kind;
	}

	public String getMainId() {
		return this.mainId;
	}

	public void setMainId(String mainId) {
		this.mainId = mainId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractMyFaveId))
			return false;
		AbstractMyFaveId castOther = (AbstractMyFaveId) other;

		return ((this.getUserIdentify() == castOther.getUserIdentify()) || (this
				.getUserIdentify() != null
				&& castOther.getUserIdentify() != null && this
				.getUserIdentify().equals(castOther.getUserIdentify())))
				&& ((this.getKind() == castOther.getKind()) || (this.getKind() != null
						&& castOther.getKind() != null && this.getKind()
						.equals(castOther.getKind())))
				&& ((this.getMainId() == castOther.getMainId()) || (this
						.getMainId() != null
						&& castOther.getMainId() != null && this.getMainId()
						.equals(castOther.getMainId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getUserIdentify() == null ? 0 : this.getUserIdentify()
						.hashCode());
		result = 37 * result
				+ (getKind() == null ? 0 : this.getKind().hashCode());
		result = 37 * result
				+ (getMainId() == null ? 0 : this.getMainId().hashCode());
		return result;
	}

}